package lab02.test35;

/**
 * Created by 婷婷 on 2017/11/22.
 */
public class Salesman extends Employee {
    @Override
    public double computerSalary() {
        return salary+5*num;
    }
    double salary;
    double num;

    public Salesman(){}
    public Salesman(double salary,double num){
        this.num=num;
        this.salary=salary;
    }

    @Override
    public String toString() {
        return "姓名："+name+"\n"+"性别："+sex+"\n"+"销售人员工资："+(salary+5*num);
    }
}
